package org.example.authentication.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.util.Set;

@Data
@TableName("t_sys_user")
@FieldDefaults(level = AccessLevel.PRIVATE)
public class SysUser {
    String id;
    String username;
    String password;

    /**
     * 用户拥有的角色集合
     */
    @TableField(exist = false)
    Set<SysRole> roles;
}
